home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / utils / tiny_firewall / tpf5.exe / Tiny Personal Firewall 5.0.msi / banner.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2003-05-29  |  2.6 KB  |  85 lines

  1. <?xml version='1.0' ?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.    <xsl:output method="xml" indent="yes" />
  4.    <xsl:variable name="files" select="document ('c:\\files.xml')" />
  5.    <xsl:variable name="alltotal" select="number (0)" />
  6.    <xsl:template match="/">
  7.       <div style="font-size:18px;">
  8.             Total Events= <xsl:value-of select="count(//Event)" />
  9.         </div>
  10.     
  11.     <!--    
  12.         <xsl:for-each select="$files//file">
  13.         fff<xsl:value-of select="." />
  14.         ttt<xsl:value-of select="count(document(.)//Event)" /><br />
  15.         
  16.          <xsl:variable name="loctotal" select="$alltotal" />
  17.          <xsl:variable name="alltotal" select="$loctotal + count(document(.)//Event)" />
  18.  
  19. each <xsl:value-of select="$alltotal" /> <br />
  20.  
  21.  
  22.         </xsl:for-each>
  23.         
  24.         Total Events= <xsl:value-of select="$alltotal" />
  25. -->
  26.    </xsl:template>
  27.    <!--
  28.    <xsl:key name="userskey" match="Event" use="@user" />
  29.    <xsl:variable name="userslist" select="/Root/Event[generate-id() =
  30.                                  generate-id(key('userskey',
  31.                                                  @user)[1])]/@user" />
  32.    
  33.    
  34.    
  35.    <xsl:variable name="users" select="//Event/@user"/>
  36.    
  37.    
  38.    <xsl:template match="/">
  39.    Total = <xsl:value-of select="count($users)" />
  40.  Total2 = <xsl:value-of select="count($userslist)" />
  41.  
  42.          <xsl:for-each select="$userslist">
  43.       row
  44.          <xsl:value-of select="current()" /> 
  45.       </xsl:for-each>
  46.    </xsl:template>
  47.    -->
  48.    <!--
  49.  <xsl:key name="code-types"
  50.          match="code"
  51.          use="@type" />
  52.  
  53. <xsl:variable name="code-types"
  54.               select="/Root/code[generate-id() =
  55.                                  generate-id(key('code-types',
  56.                                                  @type)[1])]/@type" />
  57. -->
  58.    <!--////////////////////////////////////////////////////////////////////////////////////////////////////-->
  59.    <!-- 
  60.   
  61.    
  62.    <xsl:template match="/">
  63.       <select name='test'>
  64.          <xsl:for-each select="//Event/@user [count( @user| key('persInit', @user)[0]) = 1]">
  65.             <option>
  66.                <xsl:value-of select="@user" />
  67.               
  68.             </option>
  69.          </xsl:for-each>
  70.       </select>
  71.    </xsl:template>
  72.     -->
  73.    <!--    
  74.    <xsl:template match="users">
  75.   <table>
  76.     <tr><th>partNum</th><th>Qty</th></tr>
  77.     <xsl:for-each      select="*[@user and   generate-id(.)=generate-id(key('users', @user))]" >
  78.                  <xsl:value-of select="Event/@user" />
  79.  
  80.           </xsl:for-each>      
  81.   </table>
  82. </xsl:template>
  83.   -->
  84. </xsl:stylesheet>
  85.